-- GENERATED SPELL FOR [Lor'themar Theron] --


function spell0_16802(pUnit, Event) --@Arcane Shock,n/a--
pUnit:FullCastSpellOnTarget(59715,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16802', 0, 1)
end

function spell1_16802(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(15284,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16802', 595, 1)
end

function spell2_16802(pUnit, Event) --@Mana Burn,n/a--
pUnit:FullCastSpellOnTarget(33385,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16802', 599, 1)
end

function spell3_16802(pUnit, Event) --@Mass Charm,Self--
pUnit:FullCastSpellOnTarget(33384,pUnit)
pUnit:RegisterEvent('Sorts_16802', 15294, 1)
end

function Sorts_16802(pUnit, Event)
local choix_sorts_16802 = math.random(0, 3)
if choix_sorts_16802 == 0 then
pUnit:RegisterEvent('spell0_16802', 1, 1)
end
if choix_sorts_16802 == 1 then
pUnit:RegisterEvent('spell1_16802', 1, 1)
end
if choix_sorts_16802 == 2 then
pUnit:RegisterEvent('spell2_16802', 1, 1)
end
if choix_sorts_16802 == 3 then
pUnit:RegisterEvent('spell3_16802', 1, 1)
end
end

function mob16802_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_16802', math.random(1500, 3000), 1)
end

function mob16802_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16802_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16802_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(16802, 1, 'mob16802_Action')
RegisterUnitEvent(16802, 2, 'mob16802_Leave')
RegisterUnitEvent(16802, 3, 'mob16802_Kill')
RegisterUnitEvent(16802, 4, 'mob16802_Die')
